/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Tema_4_arrays;

/**
 *
 * @author Alex
 */
public class Ejer_22_teoria_do {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        int i=0;
        int numnocero=0;
        
        int v[]={7,56,89,23,0,58,99,9,23,0,22};
        do
        {
            if(v[i]!=0)
            {
                numnocero++;
            }  
            else
            {
                break;
            }
            i++;
        }
        while(i<v.length);
    }
}
